﻿<html>
<head>
<title></title>
<meta name='keywords' content=''>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
*{
	margin: 0;
	padding: 0;
	font-size: 12px;
}
.buton {
font: 12px verdana,tahoma; 
color: #fff; 
background-color: #75A707;
border:1px solid #508A04;
height:2em;
}

</style>
</head>
<body bgcolor="#ffffff" text="#000000" leftmargin="0" topmargin="0">

<?php foreach((array)$picdata as $_key => $_value ) { ?>
 
 <?php if ($_value.file_url) { ?>
<img src='{$_value.file_url|picdir}' id='upsrc' width='100px' height='100px'><a href="?app={$app}&act=pupfile&action=del&id={$_value.id}"><img src='{$site_url}/data/images/close.gif'></a>

<?php } ?>

<?php } ?>
					
<form name="form1" method="post" action="?app={$app}&act=pupfile" enctype="multipart/form-data">

  <input id="postfile1" type="file" name="postfile1"  class="buton">
  <input  type="submit" name="Submit" value="上传文件" style="height:20px;" class="buton" >
  <input type="hidden" name="action" value="post">
  <input type="hidden" name="waterimg" value="0">  
  <input type="hidden" name="id" value="{$id}">
</form>

<!--<style type="text/css">

.gray_button {
color:#333333;
display:inline;
font-size:14px;
height:26px;
margin-left:65px;
width:180px;
font-weight:bold;
text-align:center;
vertical-align:middle;
background-color:#E4E4E4;
border:1px solid #999999;
}

.tfile {
height:26px;
left:110px;
opacity:0;
position:absolute;
top:67px;
width:65px;
word-wrap:break-word;
}
</style>
<form id="picUploadForm" action="?app={$app}&act=pupfile" method="POST" enctype="multipart/form-data">
<input type="button" value="从电脑中选择图片..." onclick="get_obj('uploadimg').click();" class="gray_button">
  <input type="file" name="postfile1" id="uploadimg" class="tfile" style="display:none" >
    <input  type="submit" name="Submit" value="上传文件" style="height:20px;" class="buton" >
  <input type="hidden" name="action" value="post">
  <input type="hidden" name="waterimg" value="0">  
  <input type="hidden" name="id" value="{$id}">
</form>
<SCRIPT LANGUAGE="JavaScript"> 

function get_obj(obj){
   return document.getElementById(obj);
}

function sclick(){

	
		get_obj('uploadimg').click();		    


}

</SCRIPT> -->

</body>
</html>